package com.training.java.core.homework07;

public class LaptopMutableDemo {

	public static void main(String[] args) {

		LaptopMutable laptop = new LaptopMutable();
		System.out.println("");

		if (!laptop.isPowerOn()) {
			laptop.start();
		}
		System.out
				.println("I am going to work, so I'll be switching off laptop");
		if (laptop.isPowerOn()) {
			laptop.stop();
		}

		System.out.println("");
		System.out
				.println("I'll upgrade laptop, so I'll be switching off laptop");
		if (laptop.isPowerOn()) {
			laptop.stop();
		}

		laptop.upgrade(laptop.getMaxMemory() + 4,
				laptop.getMaxDiskCapacity() + 50);
		if (!laptop.isPowerOn()) {
			laptop.start();
		}
		System.out
				.println("laptop boooted after upgrade, I'll shutdown for the day.");
		if (laptop.isPowerOn()) {
			laptop.stop();
		}
	}
}
